<%@page import="siteflash.model.Tag"%>
<%@page import="java.util.ArrayList"%>

<%
    String title = (String) request.getAttribute("title");
    String description = (String) request.getAttribute("description");
    String keywords = (String) request.getAttribute("keyword");
    
    ArrayList<Tag> tags = (ArrayList<Tag>) request.getAttribute("tags");
    
%>
<jsp:include page="/layouts/header.jsp">
    <jsp:param name="title" value="<%=title %>" />
    <jsp:param name="description" value="<%=description %>" />
    <jsp:param name="keywords" value="<%=keywords %>" />
    <jsp:param name="page" value="home" />
    <jsp:param name="ogtitle" value="Y1s List Tags" />
    <jsp:param name="ogimage" value="http://www.y1s.org/images/logo.png" />
    <jsp:param name="ogescription" value="List Tags on Y1s" />
</jsp:include>

        <div class="infopage">
           <div class="topinfo">
                <div class="tleft">
                    <h1>Tags</h1>
                </div>
                <div class="clear"></div>
           </div>
           
           <div class="tags-list">
                <ul>
                    <% for (int i=0; i < tags.size(); i++) { %>
                    <li><a href="/tags/<%=tags.get(i).getAlias()%>"><%=tags.get(i).getName()%></a> <span>(<%=tags.get(i).getTotal() %>)</span></li>
                    <% }%>
                </ul>
                <div class="clear"></div>
           </div>
       </div>
<jsp:include page="/layouts/footer.jsp">
    <jsp:param name="language" value="1" />
</jsp:include>